﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace _09_1对多
{
    /// <summary>
    /// 文章类
    /// </summary>
    public class Article
    {
        public long Id { get; set; }
        public string Title { get; set; }
        public string Content { get; set; }
        public bool IsDeleted { get; set; }
        // 一对多用 
        public List<Comment> comments=new List<Comment>(); //  建议给一个空的list 用new

    }
    
}
